$(function(){
    var url="../userAction/getUser.action";
    var user = null;
    $.ajax({
        //请求方式
        type : "POST",
        //请求的媒体类型
        contentType: "application/json;charset=UTF-8",
        //请求地址
        url : url,
        //数据，json字符串
        data : null,
        async: true,
        //请求成功
        success : function(getUser) {
            if(getUser.userId=="" || getUser.userId==null){
                location.href="index.html";
            }else{
                user = getUser;
            }
        }
    });
});
